home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / util / gnu / gnu_oleo_1_2_2.lha / oleo-1.2.2 / sysdef.h < prev    next >
C/C++ Source or Header  |  1993-03-03  |  3KB  |  132 lines

  1. #ifndef SYSDEFH
  2. #define SYSDEFH
  3. /*    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this software; see the file COPYING.  If not, write to
  17. the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18. /*  t. lord    Sun Aug  9 22:03:36 1992    */
  19.  
  20.  
  21.  
  22. #ifdef STDC_HEADERS
  23. #include <stddef.h>
  24. #endif
  25.  
  26. #include <sys/types.h>
  27. #include <sys/time.h>
  28. #ifdef HAVE_SYS_SELECT_H
  29. #include <sys/select.h>
  30. #endif
  31.   
  32. #ifdef HAVE_UNISTD_H
  33. #include <unistd.h>
  34. #else
  35. #ifdef __STDC__
  36. extern int access (char *, int);
  37. extern int getuid (void);
  38. #endif
  39. #endif /* HAVE_UNISTD_H */
  40.  
  41. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  42. #include <string.h>
  43. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  44. #if !defined(STDC_HEADERS) && HAVE_MEMORY_H
  45. #include <memory.h>
  46. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  47. #ifndef index
  48. #define index strchr
  49. #endif
  50. #ifndef rindex
  51. #define rindex strrchr
  52. #endif
  53. #ifndef bcopy
  54. #define bcopy(s, d, n) memcpy ((d), (s), (n))
  55. #endif
  56. #ifndef bcmp
  57. #define bcmp(s1, s2, n) memcmp ((s1), (s2), (n))
  58. #endif
  59. #ifndef bzero
  60. #define bzero(s, n) memset ((s), 0, (n))
  61. #endif
  62. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  63. #include <strings.h>
  64. /* memory.h and strings.h conflict on some systems.  */
  65. #endif /* not STDC_HEADERS and not HAVE_STRING_H */
  66.  
  67. #include <math.h>
  68. #include <time.h>
  69. #include <signal.h>
  70.  
  71.  
  72. #ifdef __STDC__
  73. extern int gethostname (char *, int);
  74. extern int atoi (const char *);
  75. extern char *getenv (const char *);
  76.  
  77. #ifndef HAVE_STRDUP
  78. extern char *strdup (const char *);
  79. #endif
  80. #ifndef HAVE_STRICMP
  81. extern int stricmp (const char *, const char *);
  82. #endif
  83. #ifndef HAVE_STRINCMP
  84. extern int strincmp (const char *, const char *, size_t);
  85. #endif
  86. #ifndef HAVE_STRSTR
  87. extern const char *strstr (const char *, const char *);
  88. #endif
  89.  
  90. #else  /* !defined(__STDC__) */
  91.  
  92. #ifndef HAVE_STRDUP
  93. extern char *strdup ();
  94. #endif
  95. #ifndef HAVE_STRSTR
  96. extern char *strstr ();
  97. #endif
  98.  
  99. #endif /* !defined(__STDC__) */
  100.  
  101. extern char *getenv ();
  102.  
  103. #ifndef RETSIGTYPE
  104. #define RETSIGTYPE void
  105. #endif /* RETSIGTYPE */
  106.  
  107. #ifndef VOIDSTAR
  108. #define VOIDSTAR void *
  109. #endif
  110.  
  111. #ifndef __STDC__
  112. #define const
  113. #endif
  114.  
  115. #if defined(USE_DLD) && 0
  116. extern int dld_errno;
  117. extern int dld_nerr;
  118. extern char *dld_errlst[];
  119. extern dld_undefined_sym_count;
  120. extern char *dld_search_path;
  121. extern void (*dld_get_func())();
  122. extern int dld_unlink_by_file EXT2(char *,int);
  123. extern int dld_link EXT1(char *);
  124. extern int dld_function_executable_p EXT1(char *);
  125. extern int dld_init EXT1(char *);
  126. extern char *dld_find_executable EXT1(char *);
  127. extern char ** dld_list_undefined_sym EXT0();
  128. #endif
  129.  
  130.  
  131. #endif
  132.